//
//  UIViewEx.h
//  mcf
//
//  Created by yuike6 yuike6 on 12-1-7.
//  Copyright (c) 2012年 yuike. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "ymall.h"

#define VIEW_WIDTH          self.frame.size.width
#define VIEW_HEIGHT         self.frame.size.height

#define BOUNDS_WIDTH        self.bounds.size.width
#define BOUNDS_HEIGHT       self.bounds.size.height


@interface UIViewEx : UIView
{
    UIInterfaceOrientation currrentInterfaceOrientation;
    BOOL disabled;
    
    BOOL bInited;
    
    float width__;
    float height__;
    float origin_x_;
    float origin_y_;
}

@property (nonatomic,readonly) UIInterfaceOrientation currrentInterfaceOrientation;
@property (nonatomic,assign) BOOL disabled;
@property (nonatomic, assign) BOOL bInited;

@property (nonatomic, assign) float width;
@property (nonatomic, assign) float height;

@property (nonatomic, assign) float origin_x;
@property (nonatomic, assign) float origin_y;

-(void)rotate:(UIInterfaceOrientation)interfaceOrientation includeSubViews:(BOOL) bIncluded
    animation:(BOOL)animation ;

-(void) reAdjustLayout;
-(void) destory;

@end
